package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "通知")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "notice_inner_id", type = IdType.AUTO)
    private Long noticeInnerId;

    /**
     * 通知方式编码
     */
    @ApiModelProperty(value = "通知编码",required = true)
    private String noticeCode;

    /**
     * 通知方式名称
     */
    @ApiModelProperty(value = "通知名称",required = true)
    private String noticeName;

    /**
     * 通知方式类型
     */
    @ApiModelProperty(value = "通知类型",required = true)
    private String noticeType;

    /**
     * 相关参数
     */
    @ApiModelProperty(value = "相关参数",required = true)
    private String noticeParam;

    /**
     * 代理
     */
    @ApiModelProperty(value = "通知类型",required = false)
    private String agent;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;


}
